package com.itheima.demo04;

public class Foo {
    public void way() {

    }

    public void way3() {
        class test {
            Foo getFoo2() {
                return Foo.this;
            }

            public void way03() {
                getFoo2().way();
            }
        }
    }

    class Bar {
        Foo getFoo() {
            return Foo.this;
        }

        public void way() {
            getFoo().way();
        }
    }
}
